package com.example.user.client;

import com.example.common.model.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-service")
public interface UserFeignClient {

    @GetMapping("/info")
    UserDTO getUserById(@RequestParam String id);


    @GetMapping("/save")
    Long save( @RequestParam String username,
               @RequestParam String password );
}
